package net.sunbeta.testng;

import java.io.IOException;
import java.io.PrintWriter;
import java.io.Writer;

import org.testng.reporters.EmailableReporter;

public class SinglePageReporter extends EmailableReporter {

    private Writer writer;

    public SinglePageReporter(Writer writer) {
        this.writer = writer;
    }

    @Override
    protected PrintWriter createWriter(String outdir) throws IOException {
        return new PrintWriter(writer);
    }
}
